//路由信息
export const routes: any = [
  { path: '/', redirect: '/login' },
  {
    name: '登录页',
    path: '/login',
    component: '@/pages/login', //去src下找pages目录下的login组件
    layout: false,
  },
  {
    name: '全局布局',
    component: '@/layouts/layout',
    routes: [
      {
        path: '/',
        redirect: '/dashboard',
      },
      {
        name: '看板',
        path: '/dashboard',
        component: '@/pages/dashboard',
      },
      {
        name: '医院列表',
        path: '/hospitalList',
        component: '@/pages/doctorInfo/hospitalList',
      },
      {
        name: '医生列表',
        path: '/doctorList',
        component: '@/pages/doctorInfo/doctorList',
      },
    ],
  },
  {
    name: '404页',
    path: '/*',
    component: '@/pages/404/index',
    layout: false,
  },
];

export const menuData: any = [
  {
    key: 'dashboard',
    label: '看版',
  },
  {
    key: 'doctorInfo',
    label: '医生信息',
    children: [
      {
        key: 'hospitalList',
        label: '医院列表',
      },
      {
        key: 'doctorList',
        label: '医生列表',
      },
    ],
  },
];
